package stylistcrm.core.services.user.service;

import stylistcrm.core.services.order.exception.BizException;
import stylistcrm.core.services.security.dto.UserDto;
import stylistcrm.core.services.user.User;
import stylistcrm.core.services.user.profile.DesignerUserProfile;
import stylistcrm.core.services.user.profile.StylistUserProfile;

/**
 * Created by yanwc on 2016/8/31.
 */
public interface UserService {
    User getCurrentUser() throws BizException;
    User getUser(long secUserId);

    /**
     *注册通用账号
     * @param userName
     * @param loginName
     * @param password
     * @return
     * @throws BizException
     */
    UserDto registerAccount(String userName,String loginName,String password) throws BizException;

    /**
     * 申请注册设计师
     * @param designer
     * @return
     * @throws BizException
     */
    Boolean registerDesigner(DesignerUserProfile designer) throws  BizException;

    /**
     * 申请注册设计师
     * @param stylist
     * @return
     * @throws BizException
     */
    Boolean registerStylist(StylistUserProfile stylist) throws BizException;

}
